import Vue from 'vue'
import VueRouter from 'vue-router'
import Home2 from '../views/Home.vue'
import View from '../views/View.vue'
import Double from '../views/Double.vue'

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        name: 'Home2',
        component: Home2
    },
    {
        path: '/view',
        name: 'View',
        component: View
    },
    {
        path: '/double',
        name: 'Double',
        component: Double
    }
]

const router = new VueRouter({
    routes
})

export default router
